package com.qj.yantaishan.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qj.yantaishan.common.annotation.Excel;
import com.qj.yantaishan.common.core.domain.BaseEntity;

/**
 * 附件对象 shanglala_attachment
 * 
 * @author qihe
 * @date 2022-07-22
 */
public class Attachment
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long pigcmsId;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Long storeId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 0为上传，1为导入，2为收藏 */
    @Excel(name = "0为上传，1为导入，2为收藏")
    private Integer from;

    /** 0为图片，1为语音，2为视频 */
    @Excel(name = "0为图片，1为语音，2为视频")
    private Integer type;

    /** 文件地址 */
    @Excel(name = "文件地址")
    private String file;

    /** 尺寸，byte字节 */
    @Excel(name = "尺寸，byte字节")
    private Long size;

    /** 图片宽度 */
    @Excel(name = "图片宽度")
    private Long width;

    /** 图片高度 */
    @Excel(name = "图片高度")
    private Long height;

    /** 添加时间 */
    @Excel(name = "添加时间")
    private Long addTime;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 用户IP地址 */
    @Excel(name = "用户IP地址")
    private Long ip;

    /** 用户浏览器信息 */
    @Excel(name = "用户浏览器信息")
    private String agent;

    public void setPigcmsId(Long pigcmsId) 
    {
        this.pigcmsId = pigcmsId;
    }

    public Long getPigcmsId() 
    {
        return pigcmsId;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setFrom(Integer from) 
    {
        this.from = from;
    }

    public Integer getFrom() 
    {
        return from;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setFile(String file) 
    {
        this.file = file;
    }

    public String getFile() 
    {
        return file;
    }
    public void setSize(Long size) 
    {
        this.size = size;
    }

    public Long getSize() 
    {
        return size;
    }
    public void setWidth(Long width) 
    {
        this.width = width;
    }

    public Long getWidth() 
    {
        return width;
    }
    public void setHeight(Long height) 
    {
        this.height = height;
    }

    public Long getHeight() 
    {
        return height;
    }
    public void setAddTime(Long addTime) 
    {
        this.addTime = addTime;
    }

    public Long getAddTime() 
    {
        return addTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setIp(Long ip) 
    {
        this.ip = ip;
    }

    public Long getIp() 
    {
        return ip;
    }
    public void setAgent(String agent) 
    {
        this.agent = agent;
    }

    public String getAgent() 
    {
        return agent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pigcmsId", getPigcmsId())
            .append("storeId", getStoreId())
            .append("name", getName())
            .append("from", getFrom())
            .append("type", getType())
            .append("file", getFile())
            .append("size", getSize())
            .append("width", getWidth())
            .append("height", getHeight())
            .append("addTime", getAddTime())
            .append("status", getStatus())
            .append("ip", getIp())
            .append("agent", getAgent())
            .toString();
    }
}
